﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AgileTimeTracker.Domain.Common
{
    public interface IRepository<T> where T : BaseEntity
    {
        T GetById(object id);

        IQueryable<T> Query();

        void Add(T item);

        void Remove(T item);

        void Update(T item);

        void Commit();
    }
}
